//
//  XLAllApplyVC.m
//  industry
//
//  Created by xl on 2020/11/27.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLAllApplyVC.h"
#import "XLAllApplyViewProtocol.h"
#import "XLAllApplyAdapter.h"

@interface XLAllApplyVC ()

@end

@implementation XLAllApplyVC
- (instancetype)init {
    self = [super init];
    if (self) {
        [self configVIPWithVCPrefix:@"AllApply"];
    }
    return self;
}

- (void)dealloc {
    XLLog(@"XLAllApplyVC dealloc");
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"全部应用";
    XLSend(self.cView, XLAllApplyViewProtocol, buildView);
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    if (self.isEdit) {
        XLSend(self.cView, XLAllApplyViewProtocol, refreshCurrentViewLayoutWithIsEdit:self.isEdit);
    }
    
}



- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    if (self.isChange && self.block) {
        XLAllApplyAdapter * adapter =  XLSend(self.cView, XLAllApplyViewProtocol, getAdapter);
        self.block(adapter.commonArr, adapter.allArr);
    }
}


@end
